<%
  var ads = [
    {
      href: 'http://www.ucloud.cn/site/seo.html?utm_source=cost&utm_campaign=Ionichina%E7%A4%BE%E5%8C%BA&utm_medium=display&utm_content=shengji&ytag=%5FIonichina%E7%A4%BE%E5%8C%BA%5Fdisplay',
      label: 'UCloud',
      img_src: 'http://r.ionichina.com/160418.png',
    },
  ];

  var randomNum = (new Date()).getHours() % ads.length;

  ads = ads.slice(randomNum).concat(ads.slice(0, randomNum));
%>
<div class='panel'>
  <div class='inner ads'>

    <% ads.forEach(function (adObj, idx) { %>
      <% if (idx !== 0) { %>
        <div class="sep10"></div>
      <% } %>
      <a href="<%-adObj.href%>" target="_blank" class="banner sponsor_outlink"
    data-label="<%=adObj.label%>">
        <img src="<%- staticFile(adObj.img_src) %>">
      </a>
    <% }) %>
  </div>
</div>
